<?php
class Character_model extends CI_Model {
    public function __construct() {
        parent::__construct();
    }
    
    public function getAllByPlayer($playerId) {
        $this->db->where('playerId', $playerId);
        return $this->db->get('character')->result();
    }
    
    public function getById($id) {
        $this->db->where('id', $id);
        return $this->db->get('character')->row();
    }
    
}
?>